#ifndef RIGID_BODY_H
#define RIGID_BODY_H
#include "Model.h"
#include "BoundingBox.h"

#ifdef __APPLE__
    #include <OpenGL/OpenGL.h>
    #include <GLUT/glut.h>
#else
    #include <GL/glut.h>
#endif

class RigidBody
{
public:
	RigidBody(void);
	void LoadModel(string s);
	void SetBoundingBox(float width, float height, float depth, Point p);
    
    void SetSpeed(float x, float y, float z);
	void SetPosition(float x, float y, float z);

	void DrawWireFrame();
	void DrawModel();
	void DrawBoundingBox();

	void MoveForward(float num);
	void Turn (float num);

	void Update(float dt);
	bool IsColliding(RigidBody rigidBody);

private:
	void DrawDirection();

	Model m;
	Point pos, rotation;
    Point speed;
    BoundingBox boundingBox;
};

#endif
